<%@ Page language="C#" validateRequest="false" AutoEventWireup="true" CodeFile="edit_web_config.aspx.cs" Inherits="edit_web_config" %>
<!--
Copyright 2002-2011 Corey Trager
Distributed under the terms of the GNU General Public License
-->
<html>
<head>
<title id="titl" runat="server">btnet edit custom html</title>
<link rel="StyleSheet" href="btnet.css" type="text/css">
<script language="Javascript" type="text/javascript" src="edit_area/edit_area_full.js"></script>

<script>
    editAreaLoader.init({
        id: "myedit"	// id of the textarea to transform
			, start_highlight: true	// if start with highlight
			, toolbar: "search, go_to_line, undo, redo, help"
			, browsers: "all"
			, language: "en"
			, syntax: "sql"
			, allow_toggle: false
			, min_width: 800
			, min_height: 400
    });

    function load_custom_file() {
        var sel = document.getElementById("which")
        window.location = "edit_custom_html.aspx?which=" + sel.options[sel.selectedIndex].value
    }    
</script>	

</head>
<body>
<% security.write_menu(Response, "admin"); %>

<div class=align><table border=0 style="margin-left:20px; margin-top:20px; width:80%;"><tr><td>
<form  runat="server">

<textarea id="myedit" runat="server" style="width:100%"></textarea>
<p>

<div class="err" id="msg" runat="server">&nbsp;</div>

<div><input type=submit value="Save" class="btn">
    &nbsp;&nbsp;
    <span style="border: solid red 1px; padding: 2px; margin: 3px; color: red; font-size: 9px;">
    Be careful!  Web.config is easy to break!
    </span><br>
</div>

</form>
</table>
</div>
<asp:Literal ID="custom_footer_label" runat="server"></asp:Literal></body>
</html>